Package com.fsf.news.processor
Class NewsFleschMetricsProcessorTest
java.lang.Object
com.fsf.news.processor.NewsFleschMetricsProcessorTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
class NewsFleschMetricsProcessorTest
extends Object
Unit tests for the NewsFleschMetricsProcessor class.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) com.fsf.news.processor.NewsFleschMetricsProcessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidTests the processFleschMetrics method with a search result containing multiple articles.(package private) voidTests the processFleschMetrics method with a search result containing no articles.(package private) voidTests the processFleschMetrics method with a search result containing a single article with Flesch metrics of zero value.
-
Field Details
-
fleschMetricsProcessor
@InjectMocks com.fsf.news.processor.NewsFleschMetricsProcessor fleschMetricsProcessor
-
-
Constructor Details
-
NewsFleschMetricsProcessorTest
NewsFleschMetricsProcessorTest()
-
-
Method Details
-
testProcessFleschMetrics
@Test void testProcessFleschMetrics()Tests the processFleschMetrics method with a search result containing multiple articles. -
testProcessFleschMetricsZero
@Test void testProcessFleschMetricsZero()Tests the processFleschMetrics method with a search result containing a single article with Flesch metrics of zero value. -
testProcessFleschMetricsNoArticles
@Test void testProcessFleschMetricsNoArticles()Tests the processFleschMetrics method with a search result containing no articles.
-